package com.cloudwise.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2021/9/23 11:48
 * @description：第一个监听器
 * @modified By：
 * @version: 1.0
 */
public class FirstListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("监听servlet容器的创建");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("监听servlet容器的销毁");

    }
}
